/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package calculadorafinanciera;

/**
 *
 * @author Daniel
 */
public class CalculadoraFinanciera {
//Completo
   public boolean mayorCero(double cantidad){
       if (cantidad > 0)
        return true;
       else
        return false;
   }

   
   public double conversorMonedas(char tipo, double monto){
       if(mayorCero(monto)){
        switch(tipo){
            case 'd': return monto * 2.7;
            case 'e': return monto * 3.9;
            case 'f': return monto * 3.3;
        }
       }
       return 0.0;
   }

   public double calculoInteres(double monto,double interes, int tiempo){

      if(mayorCero(monto)){
       while(tiempo > 0){
           monto = monto*(1 * interes);
       }
       return monto;
   }
      return 0.0;
    }
    public static void main(String[] args) {
        // TODO code application logic here
    }

}
